package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

//消费表
@Data
public class Consum implements Serializable {

    public static final long serialVersionUID = 1L;

    private Long id;

    //消费人
    private String name;

    //消费金额
    private String amt;

    //消费时间
    private Date consumTime;

    //消费类型
    private String type;

    //备注
    private String remark;

    //插入时填充字段
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;


    //插入和修改时填充字段
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
